Avoiding OutOfMemoryError

Added a catch block for OutOfMemoryError when loading an image.
Released image resources from imageView when exiting the Activity (to save memory).