new changes with image code