load image data and type and length with the same request