finished get and upload resource image methods