imgSize function

not working yet