[BUG #8004] Fixed error message for loading invalid image.