small modification towards modelimage