I usually see this kind of thing when the image object has not been created. Make sure that you have created an image as well as the parent object.
In addition to Olly's suggestion - make sure your users have write access to the entity.