Added a test to check if image or not