linesize working, makes problem with how pen is implemented