Checking image inclusion for valid image extensions jpeg jpg gif -- this is a bit quick & dirty