bug fixes, undefined image