checking for pixel size