decode bitmap right from inputstream rather than converting inputstream to bytearray first