fixed error with image format