Edit image code