When I replaced
<img src="{{ asset('bundles/acmedemo/images/1.jpg') | imagine_filter('my_thumb') }}" />
with
<img src="{{ 'bundles/acmedemo/images/1.jpg' | imagine_filter('my_thumb') }}" />
I got the thumbnail. I removed the asset() helper of twig and it worked but dont know how it worked.