add resource function
add resource id
reference counter for get & dispose
setSrc for dynamic load image
updated