removed call to createimagepackets