update with shared code between grunt and frontend. image support