Fixing the correct image file extensions