set image dimensions when loaded, might speed up rendering and is more complete