minimum image bug fixed