Chrome fix

Added ability to get image dimensions before image is loaded