optimize templates thumbnail etc