Fine-tuned the process of adding images to canvas