Fixing issue for attachment images.