If you are using a custom image renderer to handle image renders, you may notice that you cannot create a valid Image object from a referenced Asset in the DAM. You are probably using code similar to the following:

You cannot simply create an image or a layer directly from an image/file resource as obtained from the resolver. You must first use the Asset class to get a rendition of the image. Then you can work with that.