fix for live resizing of image attachment