Test code for taking picture
Sets canvas height