image: Fixed ending of IF declaration