Add getTasks function, cleaned out some obsolete code for images