bug fixed when occurred that any image is not attached(#3)