Out of memory handled in DisplayImage.java