Fix if statment main/_new_image