Added Try Catch for invalid Bitmaps