Revert "Fixes issue with unknown data returned"

This reverts commit 1f4ed7bb7c599e7c87a344b0a2ccae82dd36c9ed.
Adds try catch block.
For error we were seeing when image does not convert properly