Fixed null pointer crash due to log statement
Added loading bar for images