expects integer, fixes canvas size bug #6

thanks to Juan Mellado http://stackoverflow.com/a/16502793/592125

proof of fix: http://meemoo.org/iframework/#gist/5513719