fixed duplicate image bug