moved generation of images to a separate state

- images are now created in FloatyImages state
- implemented state changing
- texture library now takes in a textureId for identification
  of textures, instead of using image.src
- we release referneces at the onStop() of the state -- hopefully no leaks!