Fixed files being saved as "image.php"