The script for packing image