Refactored Paddings for Titles and source images based on weights