added getImageDimensions

Added a function to determine the demensions of an image and return
them as an object