Reduce image target width and height by 2 recursively on OutOfMemmoryError

Discussion of problem here: https://plus.google.com/u/0/114377082157285747246/posts/cZFan3pLhiN