Conditions added to new image input to avoid empty models