Update: Replaced scaleDownGravity enum with simple float value and constants (more flexible).
Update: Added Copyright notes.