Implementing image resizing for android