fix bug with images