use readImage instead of readImageBlob