works better now, but image doesn not center perfectly
added a note