Fixed Image Preprocessing