fixed orientation issue with image from data