PHP正则处理图片img
From http://www.oschina.net/code/snippet_118180_4299