making width an integer to avoid fade drawing problems