now writing add jpeg/png/gif features