Now also checks for .png files (wrong file type)