Added image downsampling to avoid OOM exceptions in java when decoding large photos on some devices. Buddy: Ian