image gallery dynamic input update