fixing the photo rotation bug just one side