Convert to byte[] before creating the image reference for project refs