now correctly grabbing image and div dimensions; doc.ready vs window.onload