reorganize the pen image