images bug fixes