First working prototype (correct architecture, only .gif taken into account)