Bugfix: Only try to reference the loaded image if it actually has been loaded..