#770424: Patch by recrit, vastly improving Image module integration - image derivative setting, gallery and image attach support.