make img to compatible, needs to optmize image