image centering and minor stuff