complete the image handler