fixed bug with divs not being used to divide the image