Add constant for speed index in velocity

Constant definition for index of speed in a 3 dimensional velocity
Adapt particle image method to float resolution

Method to create an array of particle positions based on an image now
has support for float resolution.
The resolution decides how many pixel points are sampled and converted
to particles.
Utility method to scale values in a float array.