fix errors with divs and imgs