Fixing some thumbnail scaling issues