如何在wordpress的前端为非管理员用户显示媒体上传器上的图像编辑按钮?

I am using the wordpress media uploader to upload images from frontend. It's working fine. Now I want to enable images cropping function for this uploader. but I don't know how to display wordpress edit image button on this. Is it possible? Anyone please help me to do this. My code for media uploder is:

<input type="hidden" value="" class="process_custom_images" id="process_custom_images">
<button class="button button_style set_custom_images"><span><i class="fa fa-upload" aria-hidden="true"></i></span><?php _e( 'Upload Image'); ?></button>
<script>
jQuery(document).ready(function() {
var $ = jQuery;
if ($('.set_custom_images').length > 0) {
    if ( typeof wp !== 'undefined' && wp.media && wp.media.editor) {
        $(document).on('click', '.set_custom_images', function(e) {
            e.preventDefault();
            var button = $(this);
            var id = button.prev();
            wp.media.editor.send.attachment = function(props, attachment) {
                id.val(attachment.id);
            };
            wp.media.editor.open(button);
            return false;
        });
    }
}
});
</script>