Fix bug with images