migration bug fixes and packing images