Refactored image loader. Image error message now shows if image path exist but image cannot be loaded