add fetch image functions
add image resize