packed images

handles packed images

oops debug is on