Creating thumbnails for images inserted in article