image controller and snapshots, dirty version
imput type fix