fix bug with img size