Fixed a bug in media static var name generation
Implemented sprite visibility