input and image fixes