get width and height from image, fix the size of stats button