bug fix for extra image loading