ImageInput: prevent OutOfMemoryError when displayed selected image