Images sometimes don't load bugfix

Script firing before images have fully loaded (before dimensions can be read properly).