image bug fixes