Trying but failing to set image orientation correctly