shortened clone cursor drawing code a bit