Fixed bug. Change way of decoding pictures from decodeFile to decodeStream and add FlushedInputStream class