create thumbs then doucment saving for MODX REVO