My photo widget is not working correctly