adding ability to get decoded image data