move rain drawing functions into its own module