Logic have been changed for attachment images.