fixing bug with images