Added code to take Image size preference, updated the UI layouts to be more stable and better looking, fixed bugs