Fixed image rotation if app goes to background