change image transfer method so that it is compatible with older
ImageHandler implementation