A secure phpthumb output filter for MODx Revolution