change print image function