Fix freezing screen (cannot scroll) after uploading an image