wrote function to divide input image by another image