Detect <img> to resize images