Checking for image in store function