Fixed bug 4006: Load $GLOBALS['TSFE'] with image dimensions when IMG_RESOURCE is...