validating image file extension
updated test cases