Add logic for images to get dimensions onload to prevent trying to get dim. before loading