uncommented imagepackethandler