Further developed image submission and query functions.