bug fix with images