bel = "Render settings"
    bl_space_type = 'IMAGE_EDITOR'
    bl_category = 'Render'
    bl_region_type = 'UI'
    COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH', 'CYCLES'}

    def draw(self, context):
        # Cycles
        layout = self.layout
        layout.operator_context = 'INVOKE_REGION_WIN'
        scene = context.scene
        cscene = scene.cycles

        self.layout.label(text="Render Settings")
        self.layout.separator()
        self.layout.operator("render.render", text="Render Image").use_viewport = True
        self.layout.operator("render.render", text="Render Animation",)
        self.layout.separator()
        self.layout.prop(context.scene.render, 'resolution_x', text="Resolution X")
        self.layout.prop(context.scene.render, 'resolution_y', text="Resolution Y")
        self.layout.prop(context.scene.render, "resolution_percentage", text="Render Resolution")
        self.layout.menu(RenderResolutionPercentageMenu.bl_idname, text="Resolution Presets")
        self.layout.prop_menu_enum(context.scene.render.image_settings, 'file_format', text="File Format")
        self.layout.separator()
        self.layout.menu(AnimateRenderMenu.bl_idname, text="Animation")
        self.layout.separator()
        self.layout.prop(context.scene.world.light_settings, 'use_ambient_occlusion', text="Use AO")
        self.layout.prop(context.scene.world.light_settings, "ao_factor", text="AO Factor")
        self.layout.separator()
        self.layout.label(text="Samples:")
        self.layout.prop(cscene, "samples", text="Render")
        self.layout.prop(cscene, "preview_samples", text="Preview")
        self.layout.separator()
        self.layout.prop(context.scene.render, 'use_freestyle', text="Use Freestyle")
        self.layout.separator()
        self.layout.menu(SimplifyRenderMenu.bl_idname)
        self.layout.menu(SubsurfMenu.bl_idname)
        self.layout.separator()
        self.layout.operator(ToggleThreadsMode.bl_idname, text='Set Threads')
        self.layout.ope