added working file for controller.js with support for player image (not working yet)