added edit pnm and image