correct image code