Moved try catch to inside ImageAdapter