I was disappointed when I noticed the lack of media support in cpg for dragonfly. So I came up with this down and dirty modification based on an old hack for cpg standalone that I had lying around on an old cd-rom.
You will need to modify the "Accepted file extensions for uploaded pictures" and the "Max size for uploaded pictures" to allow the media types and for larger file size.