Fixed image orientation problem + Added image format selection