move $thumbnail_position to rc.php