change pic to resource