added imgsize() function
not sure