add vsync to kernel params
move Image constructor to object file