Moved more functions into rd-common and split the tr_image file into three: skins, image loading, image manipulation.