Checking for existing images