got js to read the image size