some basic image writing based on jaxb configuration