Pattern formation by local self-enhancement and long range inhibition