added a test to check valid image file