print image function posted