both creating thumbnails should only consider correctly named files BUT they should be JPGs also
superfluous condition