add custom input image preview