Changed float to integer for x, y, width, height parameters