Tests: Added test for image dialog automatically loading image's dimensions.