Fix mobile photo rotation issues

Signed-off-by: Alan Gardner <alan@armoin.com>