fixing image input
fixing image detection for input rendering